package com.narunas.shapes;

/**
 * 
 * 
 *   the basic building block of a visual element
 */



import java.util.ArrayList;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;


public class ContainerView extends ViewGroup {
	
	
	private Paint containerBox;
	private ChildShapeOval 	oval;
	//private ChildShapeBox 	box;
	private ArrayList children;
	
	private Paint lBox;
	private int mSize;
	
	private Canvas stage; 
	private RectF boxSize;
	
	private Context con;
	
	//private ViewManager viewManager;
	public ContainerView(Context context) {
		
		super(context);
		
	}
	public ContainerView(Context context, AttributeSet attr) {
		super(context, attr);
		//con = context;
		// TODO Auto-generated constructor stub
		// this will NOT be using xml- based drawable attributes 
		
		//oval = new ChildShapeOval(context);
		
		///children = new ArrayList();
		//children.add(oval);
		//addTouchables(children);
		
		
	}
	
	 protected final void buildContainerShape(){
	
		
		//boxSize = new RectF(10, 10,300, 300);
		//box = new ChildShapeBox();
		
		//SolidColorPaint solidBox  = new SolidColorPaint();
		//solidBox.setShadowLayer(7, 5, 5, 0x99000000);
		//children.add(0, oval);
		//addTouchables(children);
		 
		//stage.drawRoundRect(boxSize, 10, 10, box.getPaint());
		//stage.drawRoundRect(boxSize, 10, 10, solidBox.getPaint());
		 
		 
	 }

	/*
	 @Override
	 protected void onDraw(Canvas canvas) {
		 super.onDraw(canvas);
		 stage = canvas;
		 stage.drawColor(Color.LTGRAY);
		 buildContainerShape();
		 
	    }
	*/
	@Override
	protected void onLayout(boolean changed, int l, int t, int r, int b) {
		// TODO Auto-generated method stub
		
		
	}

}
